﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 产品分类
    /// </summary>
    [Comment("产品分类表")]
    public class ProductCategory : DEntityTenant
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [Comment("分类名称")]
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 所属父类Id
        /// </summary>
        [Comment("所属父类Id")]
        public long? ParentId { get; set; }

        /// <summary>
        /// 父Ids
        /// </summary>
        [Comment("父Ids")]
        public string Pids { get; set; }

        /// <summary>
        /// 打印模板ID
        /// </summary>
        [Comment("打印模板ID")]
        public long? PrintTemplateId { get; set; }

        public PrintTemplate PrintTemplate { get; set; }

        ///// <summary>
        ///// 产品集合
        ///// </summary>
        //public ICollection<Product> Products { get; set; }

        ///// <summary>
        ///// 项目集合
        ///// </summary>
        //public ICollection<ProjectDrawing> ProjectDrawings { get; set; }
    }
}
